cmake_minimum_required(VERSION 3.10)

project(CoordinateSystem VERSION 1.0)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set(GLFW_INCLUDE_DIR "C:/Tools/include") 
set(GLFW_LIBRARY "C:/Tools/lib/libglfw3.a") 

set(GLAD_SRC "C:/Tools/src/glad.c")

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resource 
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

add_executable(CoordinateSystem 
    ${GLAD_SRC}
    # src/coordinate_system.cpp
    # src/more_3d.cpp
    src/more_cube.cpp
    ${resource_file}
)

set(INCLUDE_DIRS
    ${CMAKE_CURRENT_SOURCE_DIR}/../header
    ${GLFW_INCLUDE_DIR}
)

target_include_directories(CoordinateSystem PRIVATE ${INCLUDE_DIRS})

target_link_libraries(CoordinateSystem ${GLFW_LIBRARY} opengl32)